package com.test.activeMq.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class Consumer2 {

    @JmsListener(destination = "sample.queue")
    public void receiveQueue(String text) {
        log.debug("Consumer2 receiveQueue " + text);
    }
}
